package com.example.xiaomi.Model.Controller;

import com.example.xiaomi.Model.Dao.AddressDao;
import com.example.xiaomi.Model.entity.AddressEntity;

import java.util.List;

public class AddressList {
    AddressDao AddressDao = new AddressDao();
    public List<AddressEntity> selectall(int id){
        return AddressDao.idspecify(id);
    }
    public List<AddressEntity> specify(String mail){
        return AddressDao.mailspecify(mail);
    }
}
